<!DOCTYPE html>
<html avmooLang="en">
<head>
    <meta charset="utf-8">
    <title>JavMetadata 设置</title>
</head>
<body>
    <div id="ConfigPage" data-role="page" class="page type-interior pluginConfigurationPage" data-require="emby-input,emby-button,emby-select,emby-checkbox">
        <div data-role="content">
            <div class="content-primary">
                <form id="ConfigForm">
                    <!-- AVMOO START -->
                    <div class="avmoo">
                        <div class="sectionTitleContainer flex align-items-center">
                            <h2 class="sectionTitle">AVMOO 配置</h2>
                            <!--<a is="emby-linkbutton" rel="noopener noreferrer" class="raised button-alt headerHelpButton emby-button" target="_blank" href="https://docs.jellyfin.org/general/server/settings.html">帮助</a>-->
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooDomain">域名</label>
                            <input id="avmooDomain" name="avmooDomain" type="text" is="emby-input" />
                            <div class="fieldDescription">请填写可以直连的域名，如果域名无法直连，请科学上网。</div>
                        </div>
                        <div class="selectContainer">
                            <label class="selectLabel" for="avmooLang">语言</label>
                            <select is="emby-select" id="avmooLang" name="avmooLang" class="emby-select-withcolor emby-select">
                                <option id="optEn" value="En">English</option>
                                <option id="optJa" value="Ja">日本语</option>
                                <option id="optTw" value="Tw">正體中文</option>
                                <option id="optCn" value="Cn">简体中文</option>
                            </select>
                            <div class="fieldDescription"><b>默认只支持简体中文</b>，如需要支持其它语言，请自行参照网页上的内容修改相关正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooavmooPatternSearchResult">搜索结果列表正则</label>
                            <input id="avmooPatternSearchResult" name="avmooPatternSearchResult" type="text" is="emby-input" />
                            <div class="fieldDescription">用于在返回的搜索结果列表中查找影片的的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternCover">大封面图正则</label>
                            <input id="avmooPatternCover" name="avmooPatternCover" type="text" is="emby-input" />
                            <div class="fieldDescription">获取大封面图的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternTitle">识别码和片名正则</label>
                            <input id="avmooPatternTitle" name="avmooPatternTitle" type="text" is="emby-input" />
                            <div class="fieldDescription">获取识别码和片名的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternReleaseDate">发行日期正则</label>
                            <input id="avmooPatternReleaseDate" name="avmooPatternReleaseDate" type="text" is="emby-input" />
                            <div class="fieldDescription">获取发行日期的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternDuration">影片时长正则</label>
                            <input id="avmooPatternDuration" name="avmooPatternDuration" type="text" is="emby-input" />
                            <div class="fieldDescription">获取影片时长的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternDirectorList">导演列表正则</label>
                            <input id="avmooPatternDirectorList" name="avmooPatternDirectorList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取导演列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternDirector">导演正则</label>
                            <input id="avmooPatternDirector" name="avmooPatternDirector" type="text" is="emby-input" />
                            <div class="fieldDescription">获取导演名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternStudioList">工作室列表正则</label>
                            <input id="avmooPatternStudioList" name="avmooPatternStudioList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取工作室列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternStudio">工作室正则</label>
                            <input id="avmooPatternStudio" name="avmooPatternStudio" type="text" is="emby-input" />
                            <div class="fieldDescription">获取工作室名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternLabelList">发行商列表正则</label>
                            <input id="avmooPatternLabelList" name="avmooPatternLabelList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取发行商列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternLabel">发行商正则</label>
                            <input id="avmooPatternLabel" name="avmooPatternLabel" type="text" is="emby-input" />
                            <div class="fieldDescription">获取发行商名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternCollectionList">系列列表正则</label>
                            <input id="avmooPatternCollectionList" name="avmooPatternCollectionList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取系列列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternCollection">系列正则</label>
                            <input id="avmooPatternCollection" name="avmooPatternCollection" type="text" is="emby-input" />
                            <div class="fieldDescription">获取系列名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternGenreList">类别列表正则</label>
                            <input id="avmooPatternGenreList" name="avmooPatternGenreList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取类别列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternGenre">类别正则</label>
                            <input id="avmooPatternGenre" name="avmooPatternGenre" type="text" is="emby-input" />
                            <div class="fieldDescription">获取类别名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternActressList">演员列表正则</label>
                            <input id="avmooPatternActressList" name="avmooPatternActressList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取演员列表的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternActress">演员正则</label>
                            <input id="avmooPatternActress" name="avmooPatternActress" type="text" is="emby-input" />
                            <div class="fieldDescription">获取演员信息的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternScreenshotList">缩略图列表正则</label>
                            <input id="avmooPatternScreenshotList" name="avmooPatternScreenshotList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取缩略图列表的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avmooPatternScreenshot">缩略图正则</label>
                            <input id="avmooPatternScreenshot" name="avmooPatternScreenshot" type="text" is="emby-input" />
                            <div class="fieldDescription">获取缩略图的正则表达式。</div>
                        </div>
                    </div>
                    <!-- AVMOO END -->
                    <!-- AVSOX START -->
                    <div class="avmoo">
                        <div class="sectionTitleContainer flex align-items-center">
                            <h2 class="sectionTitle">AVSOX 配置</h2>
                            <!--<a is="emby-linkbutton" rel="noopener noreferrer" class="raised button-alt headerHelpButton emby-button" target="_blank" href="https://docs.jellyfin.org/general/server/settings.html">帮助</a>-->
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxDomain">域名</label>
                            <input id="avsoxDomain" name="avsoxDomain" type="text" is="emby-input" />
                            <div class="fieldDescription">请填写可以直连的域名，如果域名无法直连，请科学上网。</div>
                        </div>
                        <div class="selectContainer">
                            <label class="selectLabel" for="avsoxLang">语言</label>
                            <select is="emby-select" id="avsoxLang" name="avsoxLang" class="emby-select-withcolor emby-select">
                                <option id="optEn" value="En">English</option>
                                <option id="optJa" value="Ja">日本语</option>
                                <option id="optTw" value="Tw">正體中文</option>
                                <option id="optCn" value="Cn">简体中文</option>
                            </select>
                            <div class="fieldDescription"><b>默认只支持简体中文</b>，如需要支持其它语言，请自行参照网页上的内容修改相关正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxavsoxPatternSearchResult">搜索结果列表正则</label>
                            <input id="avsoxPatternSearchResult" name="avsoxPatternSearchResult" type="text" is="emby-input" />
                            <div class="fieldDescription">用于在返回的搜索结果列表中查找影片的的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternCover">大封面图正则</label>
                            <input id="avsoxPatternCover" name="avsoxPatternCover" type="text" is="emby-input" />
                            <div class="fieldDescription">获取大封面图的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternTitle">识别码和片名正则</label>
                            <input id="avsoxPatternTitle" name="avsoxPatternTitle" type="text" is="emby-input" />
                            <div class="fieldDescription">获取识别码和片名的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternReleaseDate">发行日期正则</label>
                            <input id="avsoxPatternReleaseDate" name="avsoxPatternReleaseDate" type="text" is="emby-input" />
                            <div class="fieldDescription">获取发行日期的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternDuration">影片时长正则</label>
                            <input id="avsoxPatternDuration" name="avsoxPatternDuration" type="text" is="emby-input" />
                            <div class="fieldDescription">获取影片时长的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternDirectorList">导演列表正则</label>
                            <input id="avsoxPatternDirectorList" name="avsoxPatternDirectorList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取导演列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternDirector">导演正则</label>
                            <input id="avsoxPatternDirector" name="avsoxPatternDirector" type="text" is="emby-input" />
                            <div class="fieldDescription">获取导演名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternStudioList">工作室列表正则</label>
                            <input id="avsoxPatternStudioList" name="avsoxPatternStudioList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取工作室列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternStudio">工作室正则</label>
                            <input id="avsoxPatternStudio" name="avsoxPatternStudio" type="text" is="emby-input" />
                            <div class="fieldDescription">获取工作室名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternLabelList">发行商列表正则</label>
                            <input id="avsoxPatternLabelList" name="avsoxPatternLabelList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取发行商列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternLabel">发行商正则</label>
                            <input id="avsoxPatternLabel" name="avsoxPatternLabel" type="text" is="emby-input" />
                            <div class="fieldDescription">获取发行商名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternCollectionList">系列列表正则</label>
                            <input id="avsoxPatternCollectionList" name="avsoxPatternCollectionList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取系列列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternCollection">系列正则</label>
                            <input id="avsoxPatternCollection" name="avsoxPatternCollection" type="text" is="emby-input" />
                            <div class="fieldDescription">获取系列名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternGenreList">类别列表正则</label>
                            <input id="avsoxPatternGenreList" name="avsoxPatternGenreList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取类别列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternGenre">类别正则</label>
                            <input id="avsoxPatternGenre" name="avsoxPatternGenre" type="text" is="emby-input" />
                            <div class="fieldDescription">获取类别名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternActressList">演员列表正则</label>
                            <input id="avsoxPatternActressList" name="avsoxPatternActressList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取演员列表的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternActress">演员正则</label>
                            <input id="avsoxPatternActress" name="avsoxPatternActress" type="text" is="emby-input" />
                            <div class="fieldDescription">获取演员信息的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternScreenshotList">缩略图列表正则</label>
                            <input id="avsoxPatternScreenshotList" name="avsoxPatternScreenshotList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取缩略图列表的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="avsoxPatternScreenshot">缩略图正则</label>
                            <input id="avsoxPatternScreenshot" name="avsoxPatternScreenshot" type="text" is="emby-input" />
                            <div class="fieldDescription">获取缩略图的正则表达式。</div>
                        </div>
                    </div>
                    <!-- AVSOX END -->

                    <!-- SOD START -->
                    <div class="avmoo">
                        <div class="sectionTitleContainer flex align-items-center">
                            <h2 class="sectionTitle">SOD Prime 配置</h2>
                            <!--<a is="emby-linkbutton" rel="noopener noreferrer" class="raised button-alt headerHelpButton emby-button" target="_blank" href="https://docs.jellyfin.org/general/server/settings.html">帮助</a>-->
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodDomain">域名</label>
                            <input id="sodDomain" name="sodDomain" type="text" is="emby-input" />
                            <div class="fieldDescription">请填写可以直连的域名，如果域名无法直连，请科学上网。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodsodPatternSearchResult">搜索结果列表正则</label>
                            <input id="sodPatternSearchResult" name="sodPatternSearchResult" type="text" is="emby-input" />
                            <div class="fieldDescription">用于在返回的搜索结果列表中查找影片的的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternAvid">识别码正则</label>
                            <input id="sodPatternAvid" name="sodPatternAvid" type="text" is="emby-input" />
                            <div class="fieldDescription">获取识别码的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternTitle">片名正则</label>
                            <input id="sodPatternTitle" name="sodPatternTitle" type="text" is="emby-input" />
                            <div class="fieldDescription">获取片名的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternCover">大封面图正则</label>
                            <input id="sodPatternCover" name="sodPatternCover" type="text" is="emby-input" />
                            <div class="fieldDescription">获取大封面图的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternReleaseDate">发行日期正则</label>
                            <input id="sodPatternReleaseDate" name="sodPatternReleaseDate" type="text" is="emby-input" />
                            <div class="fieldDescription">获取发行日期的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternDuration">影片时长正则</label>
                            <input id="sodPatternDuration" name="sodPatternDuration" type="text" is="emby-input" />
                            <div class="fieldDescription">获取影片时长的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternDirectorList">导演列表正则</label>
                            <input id="sodPatternDirectorList" name="sodPatternDirectorList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取导演列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternDirector">导演正则</label>
                            <input id="sodPatternDirector" name="sodPatternDirector" type="text" is="emby-input" />
                            <div class="fieldDescription">获取导演名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternStudioList">工作室列表正则</label>
                            <input id="sodPatternStudioList" name="sodPatternStudioList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取工作室列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternStudio">工作室正则</label>
                            <input id="sodPatternStudio" name="sodPatternStudio" type="text" is="emby-input" />
                            <div class="fieldDescription">获取工作室名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternLabel">发行商正则</label>
                            <input id="sodPatternLabel" name="sodPatternLabel" type="text" is="emby-input" />
                            <div class="fieldDescription">获取发行商名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternCollectionList">系列列表正则</label>
                            <input id="sodPatternCollectionList" name="sodPatternCollectionList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取系列列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternCollection">系列正则</label>
                            <input id="sodPatternCollection" name="sodPatternCollection" type="text" is="emby-input" />
                            <div class="fieldDescription">获取系列名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternGenreList">类别列表正则</label>
                            <input id="sodPatternGenreList" name="sodPatternGenreList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取类别列表的正则表达式。（如果要匹配多语言，请使用正则的分组功能设置不同语言的匹配组。）</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternGenre">类别正则</label>
                            <input id="sodPatternGenre" name="sodPatternGenre" type="text" is="emby-input" />
                            <div class="fieldDescription">获取类别名字的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternActressList">演员列表正则</label>
                            <input id="sodPatternActressList" name="sodPatternActressList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取演员列表的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternActress">演员正则</label>
                            <input id="sodPatternActress" name="sodPatternActress" type="text" is="emby-input" />
                            <div class="fieldDescription">获取演员信息的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternScreenshotList">缩略图列表正则</label>
                            <input id="sodPatternScreenshotList" name="sodPatternScreenshotList" type="text" is="emby-input" />
                            <div class="fieldDescription">获取缩略图列表的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternScreenshot">缩略图正则</label>
                            <input id="sodPatternScreenshot" name="sodPatternScreenshot" type="text" is="emby-input" />
                            <div class="fieldDescription">获取缩略图的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternIntro">影片简介正则</label>
                            <input id="sodPatternIntro" name="sodPatternIntro" type="text" is="emby-input" />
                            <div class="fieldDescription">获取影片简介的正则表达式。</div>
                        </div>
                        <div class="inputContainer">
                            <label class="inputeLabel inputLabelUnfocused" for="sodPatternTrailer">预告片正则</label>
                            <input id="sodPatternTrailer" name="sodPatternTrailer" type="text" is="emby-input" />
                            <div class="fieldDescription">获取预告片的正则表达式。</div>
                        </div>
                    </div>
                    <!-- SOD Prime END -->

                    <div>
                        <button is="emby-button" type="submit" class="raised button-submit block emby-button">
                            <span>保存</span>
                        </button>
                    </div>
                </form>
            </div>
        </div>
        <script type="text/javascript">
            var Config = {
                pluginUniqueId: 'aaf9d4dc-5804-45d0-96d9-a38e30c5d9b1'
            };

            document.querySelector('#ConfigPage')
                .addEventListener('pageshow', function() {
                    Dashboard.showLoadingMsg();
                    ApiClient.getPluginConfiguration(Config.pluginUniqueId).then(function (config) {
                        // AVMOO
                        document.querySelector('#avmooDomain').value = config.Avmoo.Domain;
                        document.querySelector('#avmooLang').value = config.Avmoo.Language;
                        document.querySelector('#avmooPatternSearchResult').value = config.Avmoo.SearchResultPattern;
                        document.querySelector('#avmooPatternCover').value = config.Avmoo.CoverPattern;
                        document.querySelector('#avmooPatternTitle').value = config.Avmoo.TitlePattern;
                        document.querySelector('#avmooPatternReleaseDate').value = config.Avmoo.ReleaseDatePattern;
                        document.querySelector('#avmooPatternDuration').value = config.Avmoo.DurationPattern;
                        document.querySelector('#avmooPatternDirectorList').value = config.Avmoo.DirectorListPattern;
                        document.querySelector('#avmooPatternDirector').value = config.Avmoo.DirectorPattern;
                        document.querySelector('#avmooPatternStudioList').value = config.Avmoo.StudioListPattern;
                        document.querySelector('#avmooPatternStudio').value = config.Avmoo.StudioPattern;
                        document.querySelector('#avmooPatternLabelList').value = config.Avmoo.LabelListPattern;
                        document.querySelector('#avmooPatternLabel').value = config.Avmoo.LabelPattern;
                        document.querySelector('#avmooPatternCollectionList').value = config.Avmoo.CollectionListPattern;
                        document.querySelector('#avmooPatternCollection').value = config.Avmoo.CollectionPattern;
                        document.querySelector('#avmooPatternGenreList').value = config.Avmoo.GenreListPattern;
                        document.querySelector('#avmooPatternGenre').value = config.Avmoo.GenrePattern;
                        document.querySelector('#avmooPatternActressList').value = config.Avmoo.ActressListPattern;
                        document.querySelector('#avmooPatternActress').value = config.Avmoo.ActressPattern;
                        document.querySelector('#avmooPatternScreenshotList').value = config.Avmoo.ScreenshotListPattern;
                        document.querySelector('#avmooPatternScreenshot').value = config.Avmoo.ScreenshotPattern;

                        // AVSOX
                        document.querySelector('#avsoxDomain').value = config.Avsox.Domain;
                        document.querySelector('#avsoxLang').value = config.Avsox.Language;
                        document.querySelector('#avsoxPatternSearchResult').value = config.Avsox.SearchResultPattern;
                        document.querySelector('#avsoxPatternCover').value = config.Avsox.CoverPattern;
                        document.querySelector('#avsoxPatternTitle').value = config.Avsox.TitlePattern;
                        document.querySelector('#avsoxPatternReleaseDate').value = config.Avsox.ReleaseDatePattern;
                        document.querySelector('#avsoxPatternDuration').value = config.Avsox.DurationPattern;
                        document.querySelector('#avsoxPatternDirectorList').value = config.Avsox.DirectorListPattern;
                        document.querySelector('#avsoxPatternDirector').value = config.Avsox.DirectorPattern;
                        document.querySelector('#avsoxPatternStudioList').value = config.Avsox.StudioListPattern;
                        document.querySelector('#avsoxPatternStudio').value = config.Avsox.StudioPattern;
                        document.querySelector('#avsoxPatternLabelList').value = config.Avsox.LabelListPattern;
                        document.querySelector('#avsoxPatternLabel').value = config.Avsox.LabelPattern;
                        document.querySelector('#avsoxPatternCollectionList').value = config.Avsox.CollectionListPattern;
                        document.querySelector('#avsoxPatternCollection').value = config.Avsox.CollectionPattern;
                        document.querySelector('#avsoxPatternGenreList').value = config.Avsox.GenreListPattern;
                        document.querySelector('#avsoxPatternGenre').value = config.Avsox.GenrePattern;
                        document.querySelector('#avsoxPatternActressList').value = config.Avsox.ActressListPattern;
                        document.querySelector('#avsoxPatternActress').value = config.Avsox.ActressPattern;
                        document.querySelector('#avsoxPatternScreenshotList').value = config.Avsox.ScreenshotListPattern;
                        document.querySelector('#avsoxPatternScreenshot').value = config.Avsox.ScreenshotPattern;

                        // SOD Prime
                        document.querySelector('#sodDomain').value = config.Sod.Domain;
                        document.querySelector('#sodPatternSearchResult').value = config.Sod.SearchResultPattern;
                        document.querySelector('#sodPatternAvid').value = config.Sod.AvidPattern;
                        document.querySelector('#sodPatternTitle').value = config.Sod.TitlePattern;
                        document.querySelector('#sodPatternCover').value = config.Sod.CoverPattern;
                        document.querySelector('#sodPatternReleaseDate').value = config.Sod.ReleaseDatePattern;
                        document.querySelector('#sodPatternDuration').value = config.Sod.DurationPattern;
                        document.querySelector('#sodPatternDirectorList').value = config.Sod.DirectorListPattern;
                        document.querySelector('#sodPatternDirector').value = config.Sod.DirectorPattern;
                        document.querySelector('#sodPatternStudioList').value = config.Sod.StudioListPattern;
                        document.querySelector('#sodPatternStudio').value = config.Sod.StudioPattern;
                        document.querySelector('#sodPatternLabel').value = config.Sod.LabelPattern;
                        document.querySelector('#sodPatternCollectionList').value = config.Sod.CollectionListPattern;
                        document.querySelector('#sodPatternCollection').value = config.Sod.CollectionPattern;
                        document.querySelector('#sodPatternGenreList').value = config.Sod.GenreListPattern;
                        document.querySelector('#sodPatternGenre').value = config.Sod.GenrePattern;
                        document.querySelector('#sodPatternActressList').value = config.Sod.ActressListPattern;
                        document.querySelector('#sodPatternActress').value = config.Sod.ActressPattern;
                        document.querySelector('#sodPatternScreenshotList').value = config.Sod.ScreenshotListPattern;
                        document.querySelector('#sodPatternScreenshot').value = config.Sod.ScreenshotPattern;
                        document.querySelector('#sodPatternIntro').value = config.Sod.IntroPattern;
                        document.querySelector('#sodPatternTrailer').value = config.Sod.TrailerPattern;

                        Dashboard.hideLoadingMsg();
                    });    
                });

            document.querySelector('#ConfigForm')
                .addEventListener('submit', function(event) {
                    Dashboard.showLoadingMsg();

                    ApiClient.getPluginConfiguration(Config.pluginUniqueId).then(function (config) {
                        // AVMOO
                        config.Avmoo.Domain = document.querySelector('#avmooDomain').value;
                        config.Avmoo.Language = document.querySelector('#avmooLang').value;
                        config.Avmoo.SearchResultPattern = document.querySelector('#avmooPatternSearchResult').value;
                        config.Avmoo.CoverPattern = document.querySelector('#avmooPatternCover').value;
                        config.Avmoo.TitlePattern = document.querySelector('#avmooPatternTitle').value;
                        config.Avmoo.ReleaseDatePattern = document.querySelector('#avmooPatternReleaseDate').value;
                        config.Avmoo.DurationPattern = document.querySelector('#avmooPatternDuration').value;
                        config.Avmoo.DirectorListPattern = document.querySelector('#avmooPatternDirectorList').value;
                        config.Avmoo.DirectorPattern = document.querySelector('#avmooPatternDirector').value;
                        config.Avmoo.StudioListPattern = document.querySelector('#avmooPatternStudioList').value;
                        config.Avmoo.StudioPattern = document.querySelector('#avmooPatternStudio').value;
                        config.Avmoo.LabelListPattern = document.querySelector('#avmooPatternLabelList').value;
                        config.Avmoo.LabelPattern = document.querySelector('#avmooPatternLabel').value;
                        config.Avmoo.CollectionListPattern = document.querySelector('#avmooPatternCollectionList').value;
                        config.Avmoo.CollectionPattern = document.querySelector('#avmooPatternCollection').value;
                        config.Avmoo.GenreListPattern = document.querySelector('#avmooPatternGenreList').value;
                        config.Avmoo.GenrePattern = document.querySelector('#avmooPatternGenre').value;
                        config.Avmoo.ActressListPattern = document.querySelector('#avmooPatternActressList').value;
                        config.Avmoo.ActressPattern = document.querySelector('#avmooPatternActress').value;
                        config.Avmoo.ScreenshotListPattern = document.querySelector('#avmooPatternScreenshotList').value;
                        config.Avmoo.ScreenshotPattern = document.querySelector('#avmooPatternScreenshot').value;

                        // AVSOX
                        config.Avsox.Domain = document.querySelector('#avsoxDomain').value;
                        config.Avsox.Language = document.querySelector('#avsoxLang').value;
                        config.Avsox.SearchResultPattern = document.querySelector('#avsoxPatternSearchResult').value;
                        config.Avsox.CoverPattern = document.querySelector('#avsoxPatternCover').value;
                        config.Avsox.TitlePattern = document.querySelector('#avsoxPatternTitle').value;
                        config.Avsox.ReleaseDatePattern = document.querySelector('#avsoxPatternReleaseDate').value;
                        config.Avsox.DurationPattern = document.querySelector('#avsoxPatternDuration').value;
                        config.Avsox.DirectorListPattern = document.querySelector('#avsoxPatternDirectorList').value;
                        config.Avsox.DirectorPattern = document.querySelector('#avsoxPatternDirector').value;
                        config.Avsox.StudioListPattern = document.querySelector('#avsoxPatternStudioList').value;
                        config.Avsox.StudioPattern = document.querySelector('#avsoxPatternStudio').value;
                        config.Avsox.LabelListPattern = document.querySelector('#avsoxPatternLabelList').value;
                        config.Avsox.LabelPattern = document.querySelector('#avsoxPatternLabel').value;
                        config.Avsox.CollectionListPattern = document.querySelector('#avsoxPatternCollectionList').value;
                        config.Avsox.CollectionPattern = document.querySelector('#avsoxPatternCollection').value;
                        config.Avsox.GenreListPattern = document.querySelector('#avsoxPatternGenreList').value;
                        config.Avsox.GenrePattern = document.querySelector('#avsoxPatternGenre').value;
                        config.Avsox.ActressListPattern = document.querySelector('#avsoxPatternActressList').value;
                        config.Avsox.ActressPattern = document.querySelector('#avsoxPatternActress').value;
                        config.Avsox.ScreenshotListPattern = document.querySelector('#avsoxPatternScreenshotList').value;
                        config.Avsox.ScreenshotPattern = document.querySelector('#avsoxPatternScreenshot').value;

                        // SOD Prime
                        config.Sod.Domain = document.querySelector('#sodDomain').value;
                        config.Sod.SearchResultPattern = document.querySelector('#sodPatternSearchResult').value;
                        config.Sod.AvidPattern = document.querySelector('#sodPatternAvid').value;
                        config.Sod.TitlePattern = document.querySelector('#sodPatternTitle').value;
                        config.Sod.CoverPattern = document.querySelector('#sodPatternCover').value;
                        config.Sod.ReleaseDatePattern = document.querySelector('#sodPatternReleaseDate').value;
                        config.Sod.DurationPattern = document.querySelector('#sodPatternDuration').value;
                        config.Sod.DirectorListPattern = document.querySelector('#sodPatternDirectorList').value;
                        config.Sod.DirectorPattern = document.querySelector('#sodPatternDirector').value;
                        config.Sod.StudioListPattern = document.querySelector('#sodPatternStudioList').value;
                        config.Sod.StudioPattern = document.querySelector('#sodPatternStudio').value;
                        config.Sod.LabelPattern = document.querySelector('#sodPatternLabel').value;
                        config.Sod.CollectionListPattern = document.querySelector('#sodPatternCollectionList').value;
                        config.Sod.CollectionPattern = document.querySelector('#sodPatternCollection').value;
                        config.Sod.GenreListPattern = document.querySelector('#sodPatternGenreList').value;
                        config.Sod.GenrePattern = document.querySelector('#sodPatternGenre').value;
                        config.Sod.ActressListPattern = document.querySelector('#sodPatternActressList').value;
                        config.Sod.ActressPattern = document.querySelector('#sodPatternActress').value;
                        config.Sod.ScreenshotListPattern = document.querySelector('#sodPatternScreenshotList').value;
                        config.Sod.ScreenshotPattern = document.querySelector('#sodPatternScreenshot').value;
                        config.Sod.IntroPattern = document.querySelector('#sodPatternIntro').value;
                        config.Sod.TrailerPattern = document.querySelector('#sodPatternTrailer').value;
                                                
                        ApiClient.updatePluginConfiguration(Config.pluginUniqueId, config).then(function (result) {
                            Dashboard.processPluginConfigurationUpdateResult(result);
                        });
                    });

                    event.preventDefault();
                    //return false;
            });
        </script>
    </div>
</body>
</html>
